<?php if (!defined('THINK_PATH')) exit();?><div class="page-sidebar-wrapper">
  <div class="page-sidebar navbar-collapse collapse">
    <ul class="page-sidebar-menu" data-slide-speed="200" data-auto-scroll="true" data-keep-expanded="false">
      <li class="sidebar-toggler-wrapper">
        <div class="sidebar-toggler"> </div>
      </li>
      <?php foreach( $menu_data as $row ) :?>
      <?php if ( $row['id'] == 1 ) : ?>
      <li class="start active"> 
        <a href="<?php echo U($row["url"]) ?>"> <i class="fa <?php echo $row['icon']?>"></i> 
          <span class="title"><?php echo $row['name']?></span> <span class="selected"></span> 
        </a> 
      </li>
      <?php else : ?>
      <li> 
        <a href="javascript:;"> 
          <i class="fa <?php echo $row['icon']?>"></i> <span class="title"><?php echo $row['name']?></span> <span class=""></span> 
        </a>
        <?php if ( isset( $row['son'] ) ) : ?>
        <ul class="sub-menu">
          <?php foreach( $row['son'] as $r ) :?>
          <li id="menu_<?php echo str_replace('/', '_', $r['url']) ?>"> <a href="<?php echo U($r['url']) ?>"> <?php echo $r['name']?></a> </li>
          <?php endforeach ; ?>
        </ul>
        <?php endif ; ?>
      </li>
      <?php endif ; ?>
      <?php endforeach ; ?>
    </ul>
  </div>
</div>